package demo21;

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        int[] a=new int[3];
        a[0]=sr.nextInt()%10;
        a[1]=sr.nextInt()%10;
        a[2]=sr.nextInt()%10;
        Arrays.sort(a);
        if(a[2]-a[1]==3&&a[1]-a[0]==3){
            if(a[0]%10==3) {
                System.out.println("10");
                return;
            }
            System.out.println(3-a[0]%10);
        }else{
            System.out.println("so sad!");
        }
    }
}
